using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dimok.Exceptions;


namespace Data.DataSources {
	public class State_ParametersDataSource : ObjectDataSourceBase {
		public override string SelectViewName { get { return "v_State_Parameters"; } }
		public override string InsertViewName { get { return "t_State_Parameters"; } }
		public State_ParametersDataSource() {
			OrderBy.Add("TableName");
			OrderBy.Add("State");
			OrderBy.Add("StateParameter");
		}
		public override DataView SelectEx(int StateID) {
			return Select("StateID=@StateID",StateID);
		}
		public void DeleteEx(int StateID, int StateParameterID, object StateParameterValue) {
			Delete("StateID =@StateID AND StateParameterID=@StateParameterID AND StateParameterValue=@StateParameterValue",
								StateID, StateParameterID, StateParameterValue);
		}
	}
}